30:00
Lecture 10
30:00
Given the following matrix:
What does mat[2, 3] return?
Consider the following R code to create a list called my_list:
Which of the following methods can be used to extract the character "B" from my_list?
Consider the following R code to create a list called my_list:
Which of the following methods can be used to extract the character "B" from my_list?
Consider the following R code:
What is the value of y after the while loop completes?
What is the correct way to define a user-defined function in R that calculates the square of a number?
What is the correct way to define a user-defined function in R that calculates the square of a number?
You want to create a customized scatter plot in Base R where:
- The points are colored based on a categorical variable group.
- The axes are labeled as “X-Axis Label” and “Y-Axis Label”.
Which of the following code snippets accomplishes this?
Which of the following is the first step when creating a new R package using devtools?
Which of the following is the first step when creating a new R package using devtools?
What is the output of the following code?
Select all the correct answers.
---
title: "Dashboard"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
css: css/styles-default.css
logo: img/logo.png
runtime: shiny
---Select all the correct answers.
---
title: "Dashboard"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
css: css/styles-default.css
logo: img/logo.png
runtime: shiny
---